package myjava.inheritance._private_;

public class Son extends Dad {

   // if you comment out the next attribute
   // getFoo won't work cuz foo is private in Dad and therefore NOT INHERITED by Son
   private String foo = "private foo in Son";

   public String getFoo() {
      return this.foo;
   }		
}